<?php

class Plugin_OutputBaseUrlReplace extends Zend_Controller_Plugin_Abstract
{
	public function dispatchLoopShutdown() {
		$body = $this->_response->getBody();
		$body = str_replace('{baseUrl}', Zend_Controller_Front::getInstance()->getBaseUrl(), $body);
		$this->_response->setBody($body);
	}
}